package com.hj.dapp.business.ocr.controller;

import com.hj.dapp.business.ocr.model.OcrDto;
import com.hj.dapp.business.ocr.model.OcrVo;
import com.hj.dapp.business.ocr.service.OcrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 胡奥程
 * @version 1.0
 * @date 2024/1/2
 */
@RestController
@RequestMapping("/ocr")
public class OcrController {
    @Autowired
    OcrService ocrService;
    @PostMapping("/getIdCardInfo")
    public OcrVo getIdCardInfo(@RequestBody OcrDto ocrDto) {
        return ocrService.getIdCardInfo(ocrDto);
    }
}
